<?php

/*
 * Copyright (C) xiuno.com
 */

!defined('FRAMEWORK_PATH') && exit('FRAMEWORK_PATH not defined.');

include BBS_PATH.'control/common_control.class.php';

class test_control extends common_control {
	function on_newpassword(){
		
		$password="yangtuomengqiu2015";
		$salt = substr(md5(rand(10000000, 99999999).$_SERVER['time']), 0, 8);
		$password = $this->user->md5_md5($password, $salt);
		echo $password."\t".$salt;		
		
	}

}